<template>
  <div class="top">
    <div class="gonggao" @click.stop="showGonggao"><img src="~assets/images/gonggaoBtn.png" alt=""></div>
    <div class="guize" @click.stop="showGuize"><img src="~assets/images/guizeBtn.png" alt=""></div>
  </div>
</template>

<script>
  import sessionDAO from 'common/sessionDAO'
  const TDAPP = window.TDAPP
  export default {
    methods: {
      showGonggao () {
        this.$store.dispatch('setShowGonggao', true)
        TDAPP.onEvent('23001', '', {userCode: sessionDAO.getUserCode()})
        TDAPP.send()
      },
      showGuize () {
        this.$store.dispatch('setShowGuize', true)
        TDAPP.onEvent('23002', '', {userCode: sessionDAO.getUserCode()})
        TDAPP.send()
      }
    }
  }
</script>
